package com.devframe.web.struts2;

import java.util.Map;

import org.apache.struts2.impl.StrutsActionProxyFactory;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.ActionProxy;

public class MyActionProxyFactory extends StrutsActionProxyFactory {
	 public ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String, Object> extraContext, boolean executeResult, boolean cleanupContext) {
	        ActionInvocation inv = new MyActionInvocation(extraContext, true);
	        container.inject(inv);
	        return createActionProxy(inv, namespace, actionName, methodName, executeResult, cleanupContext);
	    }
}
